import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/6/28
 * @apiNote
 */
public class SwitchCasepractice {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入年：");
        int year = input.nextInt();
        System.out.print("请输入月：");
        int month = input.nextInt();
        System.out.print("请输入日：");
        int day = input.nextInt();
        int days = 0;

        switch (month) {
            case 12:
                days += 30;
            case 11:
                days += 31;
            case 10:
                days += 30;
            case 9:
                days += 31;
            case 8:
                days += 31;
            case 7:
                days += 30;
            case 6:
                days += 31;
            case 5:
                days += 30;
            case 4:
                days += 31;
            case 3:
                days += (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) ? 29 : 28;
            case 2:
                days += 31;//加1月满月的天数
            case 1:
                days += day;
        }
        System.out.println(year + "年" + month + "月" + day + "天是这一年的第" + days + "天");

        input.close();

    }
}
